import request from '@/utils/request'

export function getPunish(data) {
  return request({
    url: '/api/Activate/GetPunishList',
    method: 'post',
    data: data
  })
}

export function savePunish(data) {
  return request({
    url: '/api/Activate/SavePunish',
    method: 'post',
    data: data
  })
}

export function delPunish(data) {
  return request({
    url: '/api/Activate/DeletePunish',
    method: 'post',
    data: data
  })
}

export function toggleValidPunish(data) {
  return request({
    url: '/api/Activate/ValidPunish',
    method: 'post',
    data: data
  })
}

export function GetPunishById(data) {
  return request({
    url: '/api/Activate/GetPunishById',
    method: 'post',
    headers: {
      hideToast: true
    },
    data: data
  })
}
